package com.xbongbong.pro.formexplain.pojo.dto;

import com.xbongbong.paas.pojo.dto.FormExplainAddDTO;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 批量插入字段解释信息
 * @author 吴峰
 * @version v1.0
 * @date 2019/1/23 22:28
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class FormExplainAddBatchDTO extends BaseDTO {
    private static final long serialVersionUID = 7816304814140562821L;

    @NotEmpty(message = "{dto.msg.formExplainAddBatch.formExplainList.NotEmpty}")
    @Valid
    private List<FormExplainAddDTO> formExplainList;

    private Integer companyInit;

    public FormExplainAddBatchDTO() {
        companyInit = 0;
    }
}
